package com.zhentao.common.enums.admin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @TableName ad_withdrawal
 */
@TableName(value ="ad_withdrawal")
@Data
public class AdWithdrawal implements Serializable {
    /**
     * id
     */
    @TableId(value = "withdrawal_id", type = IdType.AUTO)
    private Integer withdrawalId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 提现金额
     */
    @TableField(value = "amount")
    private BigDecimal amount;

    /**
     * 提现请求时间
     */
    @TableField(value = "request_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date requestDate;

    /**
     * 审批时间
     */
    @TableField(value = "approval_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date approvalDate;

    /**
     * 提现请求状态0待处理1已批准2已拒绝
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 拒绝理由
     */
    @TableField(value = "rejection_reason")
    private String rejectionReason;

    /**
     * 审核人
     */
    @TableField(value = "approval_by")
    private Integer approvalBy;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 提现方式
     */
    @TableField(value = "manner_id")
    private String mannerId;

    /**
     * 提现名称
     */
    @TableField(exist = false)
    private String mannerName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}